package com.tcxhb.job.admin.model.response;

import com.tcxhb.job.common.model.job.JobParams;
import com.tcxhb.job.common.model.job.RunStrategy;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * author:auto.generator
 * time: 2023-11-05
 */
@Data
public class JobInstanceVO implements Serializable {

    @ApiModelProperty("")
    private Long id;
    @ApiModelProperty("应用")
    private String appName;
    @ApiModelProperty("任务，主键ID")
    private Long jobId;

    private String jobName;
    @ApiModelProperty("客户端地址")
    private String machineAddr;
    @ApiModelProperty("执行器任务参数")
    private JobParams jobParams;
    @ApiModelProperty("调度-时间")
    private Date scheduleTime;
    @ApiModelProperty("调度-结果")
    private Integer scheduleCode;
    @ApiModelProperty("调度-日志")
    private String msg;
    @ApiModelProperty("执行-时间")
    private Date executeTime;
    @ApiModelProperty("分片-编号")

    private Integer shardingNo;
    @ApiModelProperty("执行-状态")
    private Integer executeCode;

    private RunStrategy runStrategy;
    @ApiModelProperty("执行-日志")
    private String executeMsg;

    private Integer failCount;
    @ApiModelProperty("最终状态")
    private Integer status;
    @ApiModelProperty("")
    private Date createTime;
    @ApiModelProperty("")
    private Date updateTime;


    /**
     * 唯一ID
     */
    private String traceId;
}
